<?php
namespace App\Http\Admin;


class Response
{
    public static function success($data)
    {
        
        return response()->json([
            'status_code' => 200,
            'data'        => $data,
        ]);
    }
    
    public static function error($message = '')
    {
        return response()->json([
            'status_code' => -1,
            'message'     => $message,
        ]);
    }

    public static function error400($message = '')
    {
        return response()->json([
            'status_code' => -1,
            'message'     => $message,
        ],400);
    }
    
    public static function return($statusCode, $message, $data = [])
    {
        return response()->json([
            'status_code' => $statusCode,
            'message'     => $message,
            'data'        => $data,
        ]);
    }
}